package per.ace.configuration.testService;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @program: springbootDemo
 * @description: test configuration
 * @author: ace
 * @Date: 2019-12-29 14:02
 **/
@Configuration
public class TestConfiguration {

    @Bean
    @Profile("test")
    public void printOut(){
        System.out.println("我现在已经被加载--在启动类以外");
    }
}
